<% source_hostname = @source_user.source_hostname %>
<% source_name = @source_user.source_name %>
<% source_username = "@#{@source_user.source_username}" %>
<% reassign_to_name = @reassign_to_user.name %>
<% reassign_to_username = "#{@reassign_to_user.to_reference} - #{user_url(@reassign_to_user)}" %>
<% reassigned_by = @source_user.reassigned_by_user %>
<% reassigned_by_name = reassigned_by.name %>
<% reassigned_by_username = "#{reassigned_by.to_reference} - #{user_url(reassigned_by)}" %>
<% destination_group = "#{@source_user.namespace.name} (/#{@source_user.namespace.full_path})" %>
<% help_link = help_page_url('user/project/import/_index.md', anchor: 'accept-contribution-reassignment') %>
<% report_link = help_page_url('user/report_abuse.md') %>
<%= s_('UserMapping|%{reassigned_by_name} (%{reassigned_by_username}) wants to reassign contributions from %{source_name} (%{source_username}) on %{source_hostname} to you in %{destination_group}.') % { reassigned_by_name: reassigned_by_name,
    reassigned_by_username: reassigned_by_username,
    source_name: source_name,
    source_username: source_username,
    source_hostname: source_hostname,
    destination_group: destination_group } %>

<%= s_('UserMapping|Review reassignment details') %>: <%= namespaced_show_import_source_users_url(@source_user.namespace_id, @source_user.reassignment_token) %>

<%= s_('UserMapping|Import details:') %>
<%= safe_format(s_('UserMapping|Imported from: %{source_hostname}'), source_hostname: source_hostname) %>
<%= safe_format(s_('UserMapping|Original user: %{source_name} (%{source_username})'), source_name: source_name, source_username: source_username) %>

<%= s_('UserMapping|Reassignment details:') %>
<%= safe_format(s_('UserMapping|Imported to: %{destination_group}'), destination_group: destination_group) %>
<%= safe_format(s_('UserMapping|Reassigned to: %{reassign_to_name} (%{reassign_to_username})'), reassign_to_name: reassign_to_name, reassign_to_username: reassign_to_username) %>
<%= safe_format(s_('UserMapping|Reassigned by: %{reassigned_by_name} (%{reassigned_by_username})'), reassigned_by_name: reassigned_by_name, reassigned_by_username: reassigned_by_username) %>

<%= s_("UserMapping|For more information, see accept contribution reassignment (%{help_link}). If you do not recognize this request, report abuse (%{report_link}).") % { help_link: help_link, report_link: report_link } %>
